package com.h2.org.springframework.beans.factory;

import com.h2.org.springframework.beans.Bean;
import java.util.HashMap;
import java.util.Map;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanFactory;

public class SimpleBeanFactory
  implements BeanFactory
{
  private Map<String, Object> _beansByName = new HashMap();
  private Map<Class<?>, Object> _classesByType = new HashMap();

  public void addBean(Bean paramBean)
  {
    getClassesByType().put(paramBean.getClazz(), paramBean.getInstantiatedObject());
    if (paramBean.getNameResolved() != null)
      getBeansByName().put(paramBean.getNameResolved(), paramBean.getInstantiatedObject());
  }

  public boolean containsBean(String paramString)
  {
    return false;
  }

  public String[] getAliases(String paramString)
  {
    return null;
  }

  public <T> T getBean(Class<T> paramClass)
    throws BeansException
  {
    return getClassesByType().get(paramClass);
  }

  public Object getBean(String paramString)
    throws BeansException
  {
    return getBeansByName().get(paramString);
  }

  public <T> T getBean(String paramString, Class<T> paramClass)
    throws BeansException
  {
    return getBeansByName().get(paramString);
  }

  public Object getBean(String paramString, Object[] paramArrayOfObject)
    throws BeansException
  {
    return null;
  }

  public Map<String, Object> getBeansByName()
  {
    return this._beansByName;
  }

  public Map<Class<?>, Object> getClassesByType()
  {
    return this._classesByType;
  }

  public Class<?> getType(String paramString)
    throws BeansException
  {
    return null;
  }

  public boolean isPrototype(String paramString)
    throws BeansException
  {
    return false;
  }

  public boolean isSingleton(String paramString)
    throws BeansException
  {
    return false;
  }

  public boolean isTypeMatch(String paramString, Class paramClass)
    throws BeansException
  {
    return false;
  }

  public void setBeansByName(Map<String, Object> paramMap)
  {
    this._beansByName = paramMap;
  }

  public void setClassesByType(Map<Class<?>, Object> paramMap)
  {
    this._classesByType = paramMap;
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.h2.org.springframework.beans.factory.SimpleBeanFactory
 * JD-Core Version:    0.6.2
 */